package test15;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-11-28
 * Time: 8:54
 */
/*
class Mbank{
    private static int sum=2000;
    public synchronized static void take(int k){
        int temp=sum;
        temp-=k;
        try {
            Thread.sleep((long) (1000*Math.random()));
        } catch (InterruptedException e) {
            System.out.println(e.toString());
        }
        sum=temp;
        System.out.println("sum="+sum);
    }
}

public class Main {
    public static void main(String[] args) {
        Customer c1 = new Customer();
        Customer c2 = new Customer();
        c1.start();
        c2.start();
    }
}
*/